home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Magazin: Amiga-CD 1997 May & June
/
Amiga-CD 1997 #5-6.iso
/
demos&programme
/
turbocalc
/
turbocalc4demo.lha
/
TurboCalc
/
ARexx
/
TurboCalc.rexx
< prev
Wrap
OS/2 REXX Batch file
|
1996-09-30
|
868b
|
45 lines
/**********************************************************
* Test ARexx-Script for TurboCalc © 1993 Michael Friedrich
**********************************************************/
Options FailAt 0
Options Results
/* Set TurboCalc-Port */
/*--------------------*/
ADDRESS TCALC
/* Get current position */
/*----------------------*/
GETCURSORPOS
oldpos = RESULT
say "Cursor was in Cell" oldpos
/* Put something to cell A1 */
/*---------------------------*/
PUT 10 A1
/* and Cell A2 */
/*-------------*/
PUT 1.23 A2
/* Formula to Cell A3 */
/*--------------------*/
SELECTCELL 'A3'
PUT '=A1+A2'
/* and read again: */
/*-----------------*/
GETFORMULA
say "Formula in A3:" RESULT
/* Contents (i.e. result of) A3 */
/*------------------------------*/
GETVALUE A3
say "Result:" RESULT
/* reset old cell position */
/*-------------------------*/
SELECTCELL oldpos